package com.cenjiawen.common;

import com.jfinal.config.Constants;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.plugin.cron4j.Cron4jPlugin;
import com.jfinal.render.FreeMarkerRender;

import freemarker.template.Configuration;

public class ReleaseConfig extends Config {
	@Override
	public void configConstant(Constants me) {
		super.configConstant(me);
		Configuration cfg = FreeMarkerRender.getConfiguration();
		cfg.setDefaultEncoding("utf-8");
	}

	@Override
	public void configRoute(Routes me) {

	}

	@Override
	public void configPlugin(Plugins me) {
		super.configPlugin(me);
		Cron4jPlugin cp = new Cron4jPlugin();
		me.add(cp);
	}
}
